﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Alertas.aspx.cs" Inherits="Presentation.Alertas" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Configuración de Alertas </title>
    
</head>

<body background="Image/RALLADO.jpg">
    <form id="form1" runat="server">

    <asp:scriptmanager ID="Scriptmanager1" runat="server"></asp:scriptmanager>
    
    <div align="center" >
    <asp:LinkButton runat="server" Text="Nuevo"  ID="btnNuevaRegla" PostBackUrl="~/MailRegla.aspx" 
            onclick="btnNuevaRegla_Click"></asp:LinkButton>    
    <asp:GridView ID="gvStatus" runat="server" AutoGenerateColumns="false" BackColor=WhiteSmoke>
        <Columns> 
            <asp:BoundField DataField="status_id" HeaderText="status_id" SortExpression="status_id"  Visible="false" ReadOnly="True" />
            <asp:BoundField DataField="sname" HeaderText="Estado" SortExpression="sname" ReadOnly="True" />
            <asp:HyperLinkField DataNavigateUrlFields="status_id" HeaderText="Reglas" DataNavigateUrlFormatString="Alertas.aspx?idStatus={0}" Text="Ver" /> 
         </Columns>    
    </asp:GridView>  
    </div>
    <div align="center">        
    <asp:GridView ID="gvReglas" runat="server" AutoGenerateColumns="False" BackColor="WhiteSmoke" 
            onselectedindexchanged="gvReglas_SelectedIndexChanged">
    <Columns>
            <asp:BoundField DataField="idregla" HeaderText="idregla" SortExpression="idregla"  Visible="false" ReadOnly="True" />
            <asp:BoundField DataField="nombre" HeaderText="Regla" SortExpression="nombre" Visible="true" ReadOnly="True" />
            <asp:BoundField DataField="dias" HeaderText="Dias" SortExpression="dias" Visible="true" ReadOnly="True" />
            <asp:HyperLinkField DataNavigateUrlFields="idregla" HeaderText="Mail" Target="_blank" DataNavigateUrlFormatString="MailRegla.aspx?idregla={0}" Text="Ver" /> 
               <asp:HyperLinkField DataNavigateUrlFields="idregla" HeaderText="Eliminar" Target="_blank" DataNavigateUrlFormatString="MailRegla.aspx?idregla={0}" Text="Eliminar" /> 
    </Columns>
    </asp:GridView>
    
         
    
    </div>
    </form>
</body>
</html>
